<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>懒人家居后台管理</title>
<link href="admin.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="js/admin.js"></script>
<script language="javascript">
function modPass(){
	if(document.getElementById("oldPass").value.trim()==""){
		alert("请输入旧密码");
		document.getElementById("oldPass").focus();
		return false;
	}
	if(document.getElementById("newPass").value.trim()==""){
		alert("请输入新密码");
		document.getElementById("newPass").focus();
		return false;
	}
	if(document.getElementById("confirmPass").value.trim()==""){
		alert("请输入确认密码");
		document.getElementById("confirmPass").focus();
		return false;
	}
	if(document.getElementById("newPass").value!=document.getElementById("confirmPass").value){
		alert("确认密码与新密码不一致，请核对后重新输入。");
		document.getElementById("confirmPass").focus();
		return false;
	}
	document.getElementById("form1").submit();
}
</script>
</head>
<body>
<table width="100%" height="500" class="whiteTable" border="0" cellpadding="0" cellspacing="0" style="white-space:normal;word-break:break-all;">
  <tr>
    <td class="pathBg" align="left" valign="middle">&nbsp;&nbsp;系统管理 &gt;&gt; 修改密码</td>
  </tr>
  <tr>
    <td height="460" align="left" valign="top"><form action="modPass.action" method="post" id="form1" name="form1">
        <table width="310" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="50" colspan="2" align="left">&nbsp;&nbsp;<s:actionerror /></td>
          </tr>
          <tr>
            <td width="70" height="25" align="center">旧 密 码：</td>
            <td width="240"><input name="oldPass" type="password" id="oldPass" size="30"></td>
          </tr>
          <tr>
            <td height="25" align="center" valign="top">新 密 码：</td>
            <td><input name="newPass" type="password" id="newPass" size="30"></td>
          </tr>
		  <tr>
            <td height="25" align="center" valign="top">确认密码：</td>
            <td><input name="confirmPass" type="password" id="confirmPass" size="30"></td>
          </tr>
          <tr>
            <td height="30" align="center"><a href="#" onClick="modPass()" class="add">提交</a></td>
            <td><a href="#" onClick="javascript:document.getElementById('form1').reset();" class="add">重置</a></td>
          </tr>
        </table>
    </form></td>
  </tr>
</table>
</body>
</html>
